import { registerMicroApps, start } from 'qiankun';

export default function qiankun() {
  // 注册微应用
  registerMicroApps([
    {
      name: 'stellar-plus',
      entry: ' http://localhost:8088',
      container: '#subapp-viewport',
      activeRule: '/plus',
    },
    {
      name: 'vue2-app',
      entry: 'http://localhost:8082',
      container: '#subapp-viewport',
      activeRule: '/app-vue2',
    },
    {
      name: 'vue3-app', // 微应用名称
      entry: 'http://localhost:8083', // 微应用入口地址
      container: '#subapp-viewport', // 微应用挂载容器
      activeRule: '/app-vue3', // 路由规则
    },
  ]);

  start(); // 启动 qiankun
}
